<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/include.inc.jsp"%>
<div class="bjui-pageHeader">
    <form id="pagerForm" method="post" data-toggle="ajaxsearch" action="${path}/ordersSource">
		<ul class="bjui-searchBar">
			<li>
				<label class="trtitle01">来源名称：</label>
				<input type="text" name="source_name" class="form-control" value="${ordersSource.source_name}"/>
			</li>
			<li>
			 	<button type="submit" class="btn-default" data-icon="search">查询</button>
			</li>
		</ul>
	</form>
</div>

<div class="bjui-pageContent">
	<div class="bjui-headBar">
          <ul>
			<li class="left">
				<a href="${path}/jsp/ordersSource/add.jsp" data-id="role-add_view" class="btn btn-default btn-sm" data-toggle="navtab" data-icon="save" data-title="添加来源">添加来源</a>
			</li>
			<li class="left">
				<a  href="${path}/ordersSource/del" class="btn btn-default btn-sm" data-toggle="doajaxchecked" data-type="post" data-confirm-msg="确定要删除选中项吗？" data-icon="trash-o" data-idname="ids" data-group="ids">删除来源</a>
			</li>
         </ul>
	</div>

	<table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
		<thead>
			<tr>
				<th width="35" style="text-align: center;"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"/></th>
				<th data-order-field="name" class="orderby">来源名称 </th>
				<th>来源描述</th>
				<th data-order-field="create_time" class="orderby">创建时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${page.result}">
				<tr >
					<td width="35" style="text-align: center;"><input type="checkbox" name="ids" data-toggle="icheck" value="${item.id}"></td>
					<td title="${item.source_name}">${item.source_name}</td>
					<td title="${item.source_descp}">${item.source_descp}</td>
					<td title="<fmt:formatDate value="${item.create_time}" pattern="yyyy-MM-dd HH:mm:ss "/>">
						<fmt:formatDate value="${item.create_time}" pattern="yyyy-MM-dd HH:mm:ss "/>
					</td>
					<td>
					    <a href="${path}/ordersSource/detail?id=${item.id}" class="btn btn-default" data-toggle="navtab" data-icon="edit" data-id="control-role-update_view" data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？"  data-title="编辑-${item.name}">编辑</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<%@include file="../page.jsp" %>